package com.apac.bom;

public class TestObject extends AbstractBOM{

	private int id;
	private String att1;
	private String att2;
	private boolean att3;
	
	public TestObject(){
		super();
	}

	public TestObject(int id, String att1, String att2, boolean att3) {
		super();
		this.id = id;
		this.att1 = att1;
		this.att2 = att2;
		this.att3 = att3;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getAtt1() {
		return att1;
	}

	public void setAtt1(String att1) {
		this.att1 = att1;
	}

	public String getAtt2() {
		return att2;
	}

	public void setAtt2(String att2) {
		this.att2 = att2;
	}

	public boolean getAtt3() {
		return att3;
	}

	public void setAtt3(boolean att3) {
		this.att3 = att3;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + id;
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		TestObject other = (TestObject) obj;
		if (id != other.id)
			return false;
		return true;
	}

	@Override
	public String toString() {
		return "TestObject [id=" + id + ", att1=" + att1 + ", att2=" + att2
				+ ", att3=" + att3 + "]";
	}
	
}
